package org.example.Imp;

import exam.dao.QuestionDao;
import org.example.QuestionService;
import org.example.domain.Question;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class QuestionServiceImp implements QuestionService {
    @Autowired
    private QuestionDao questionDao;
    @Override
    public void save(Question question) {
        questionDao.save(question);
    }

    @Override
    public Question selectById(Long id) {
        return questionDao.selectById(id);
    }

    @Override
    public List<Question> selectQuestionByIds(List<Long> ids) {
        return questionDao.selectQuestionByIds(ids);
    }

    @Override
    public List<Question> selectQuestionByCondition(String course, String type, String status, String level) {
        return questionDao.selectQuestionByCondition(course,type,status,level);
    }
}
